<?php
namespace Auth\Form;
 
use Zend\Form\Form;
use Zend\InputFilter;
use Zend\InputFilter\Factory as InputFactory;
 
class RegisterForm extends Form
{
    public function __construct()
    {
        parent::__construct('register');
          
        $this->setAttribute('method', 'post');
         $this->add(array(
            'name' => 'id',
            'attributes' => array(
                'type'  => 'hidden',
            ),
        ));
        $this->add(array(
            'name' => 'username',
			'attributes' => array(
				'required' => 'required',
				'id' => 'username',
			),
            'type' => 'Text',
            
        ));
         
        $this->add(array(
            'name' => 'password',
			'attributes' => array(
				'required' => 'required',
				'id' => 'password',
			),
            'type' => 'Password',
            
        ));
		
		$this->add(array(
            'name' => 'new_password',
			'attributes' => array(
				
				'id' => 'new_password',
			),
            'type' => 'Password',
            
        ));
		
		$this->add(array(
				'name' => 'cmt',
				'attributes' => array(
						'id' => 'cmt',
						'type'  => 'text',
						'required' => 'required',
				),
				 
		));
		
		$this->add(array(
            'name' => 'email',
            'attributes' => array(
				'id' => 'email',
                'type'  => 'email',
				'required' => 'required',
            ),
           
        ));
		$this->add(array(
            'name' => 'hoten',
            'attributes' => array(
				'id' => 'hoten',
                'type'  => 'text',
				
            ),
            
        ));
         
         $this->add(array(
            'name' => 'submit',
            'type' => 'Submit',
            'attributes' => array(
                'value' => 'Đăng nhập',
                'id' => 'Loginsubmit',
            ),
        ));
		
		
          
        
    }
     
    
}